package com.dianping.cat.configuration.web.url.entity;

import com.dianping.cat.configuration.web.url.BaseEntity;
import com.dianping.cat.configuration.web.url.IVisitor;






public class Code
  extends BaseEntity<Code>
{
  private Integer m_id;
  private String m_name;
  private Integer m_status;

  public Code() {}

/* 20 */   public Code(Integer id) { this.m_id = id; }




/* 25 */   public void accept(IVisitor visitor) { visitor.visitCode(this); }



  public boolean equals(Object obj) {
/* 30 */     if (obj instanceof Code) {
/* 31 */       Code _o = (Code)obj;

/* 33 */       if (!equals(getId(), _o.getId())) {
/* 34 */         return false;
      }

/* 37 */       return true;
    }

/* 40 */     return false;
  }


/* 44 */   public Integer getId() { return this.m_id; }



/* 48 */   public String getName() { return this.m_name; }



/* 52 */   public Integer getStatus() { return this.m_status; }
/*    */



  public void mergeAttributes(Code other) {
/* 66 */     assertAttributeEquals(other, "code", "id", this.m_id, other.getId());

/* 68 */     if (other.getName() != null) {
/* 69 */       this.m_name = other.getName();
    }

/* 72 */     if (other.getStatus() != null) {
/* 73 */       this.m_status = other.getStatus();
    }
  }

  public Code setId(Integer id) {
/* 78 */     this.m_id = id;
/* 79 */     return this;
  }

  public Code setName(String name) {
/* 83 */     this.m_name = name;
/* 84 */     return this;
  }

  public Code setStatus(Integer status) {
/* 88 */     this.m_status = status;
/* 89 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/web/url/entity/Code.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */